import java.awt.BorderLayout;
import javax.swing.JFrame;
@SuppressWarnings("serial")
public class Demo extends JFrame
{
	public static void main(String [] args)
	{
		new Demo();
	}
	private ColorPanel colorPan;
	private SliderPanel sliders;
	private Node r,g,b;
	public Demo()
	{
		setSize(500,500);
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		r=new Node();
		g=new Node();
		b=new Node();
		colorPan=new ColorPanel(r,g,b);
		sliders=new SliderPanel(r,g,b,this);
		add(colorPan,BorderLayout.CENTER);
		add(sliders,BorderLayout.WEST);
		setVisible(true);
	}
	public void changeColor()
	{
		colorPan.changeColor();
	}
}
